Object.defineProperties(wx.shareData, {

    // 保存FormId的数组

    /**
     * 保存FormId的数组
     * get: 返回数组
     * set: 可设置 Array  或 fomrId
     */
    formIdList: {
        get: function () {
            let _this = wx.shareData;
            if (!_this._formIdList) {
                _this._formIdList = [];
            }
            return _this._formIdList;
        },

        set:function(newValue){
            let _this = wx.shareData;
            if (newValue == null || Array.isArray(newValue)){
                _this._formIdList = newValue;
            }else{
                _this.formIdList.push(newValue);
            }

            if (_this.formIdList.length >= _this.numOfTargSentFormId){
                wx.sendFormId();
            }
        }
    },

});